﻿@model LeadVinaglue.Models.BaseViewModel
           
@{
    int i=0;
}
<div id="header">
	<div id="infoheader">
		<div id="tailieu">
            <a href="/"><img src="/images/vinaglue_logo.png" width="140" border="0" alt="logo" height="32" /></a>
        </div>
		<div id="search">
			@Html.Partial("SearchBar", Model)
		</div>
        <div class="right" style="color:#FFFFFF;" id="upload">
			<div style="margin-left:25px; margin-top:10px;" class="right">
                @if(User.Identity.IsAuthenticated)
                {                    
                    <ul>
					    <li style="margin-right:0px;padding-top:6px;" class="dropdownitem">
                            <span>                                
                                <a href="/MyAccount/Dashboard">Xin chào:  @User.Identity.Name</a>
                            </span>
						    <ul style="top: 20px; display: none;" class="dropdown">
							    <li class=""><a href="/MyAccount/ProductList">Quản lý tài liệu</a></li>
							    <li><a href="/MyAccount/ProductList">Quản lý tài liệu</a></li>
							    <li class=""><a href="/tro-giup">Trợ Giúp</a></li>
							    <li><a href="/Account/LogOff">Thoát</a></li>
						    </ul>
					    </li>
			        </ul>
                }
                else
                {
                    <a href="/register">Đăng ký</a><span>&nbsp;|&nbsp;</span><a href="/signin?returnUrl=@Request.Url">Đăng nhập</a>
                }
				
            </div>
			<div id="clear"></div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
	<div id="menu">
	    <div id="navimenu">
			<ul class="dropdown">	            
                <li class="">
                    <a href="/">
                        <img src="/images/home.gif" style="padding-top:8px;" width="18" />
                    </a>			
                </li>
                @foreach (var item in Model.Menu)
                {
                    <li>
                        <a href="@item.LinkUrl">@item.LinkText</a>
					    @if (item.SubMenu != null)
         {                                    
                            <ul class="sub_menu">
                                @foreach (var sub in item.SubMenu)
                                {
                                    <li><a href="@sub.LinkUrl">@sub.LinkText</a></li>
                                }
                            </ul>
         }
                    </li>
                }
			</ul>
		</div>
		<div class="clear"></div>
	</div>
</div>